//
//  UILabel+PPLabel.h
//  pickpic
//
//  Created by 胡文广 on 2017/6/10.
//  Copyright © 2017年 MicroDream. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UILabel (PPLabel)
/**
 *  标题自定义样式
 */
- (void)changeTitleMutableParagraphStyle:(NSMutableParagraphStyle *)paragraphStyle titleText:(NSString *)titleText labelFont:(UIFont *)font;

/**
 *  改变行间距
 */
- (void)changeLineSpaceForLabelWithSpace:(float)space text:(NSString *)text labelFont:(UIFont *)font;

/**
 *  改变行间距
 */
- (void)changeLineSpaceForLabelText:(NSString *)labelText WithSpace:(float)space;

/**
 *  改变字间距
 */
+ (void)changeWordSpaceForLabel:(UILabel *)label WithSpace:(float)space;

/**
 *  改变行间距和字间距
 */
+ (void)changeSpaceForLabel:(UILabel *)label withLineSpace:(float)lineSpace WordSpace:(float)wordSpace;

/**
 *  计算对齐方式 大于一行居中 否则左对齐
 */
- (void)textLabelAlbumtitle:(NSString *)albumtitle width:(CGFloat)width;


/**
 *  ture:大于一行
 */
- (BOOL)labelText:(NSString *)text width:(CGFloat)width;
@end
